using System;
using Headspring.Training.Domain.Model;
using Headspring.Training.WebUI.Presenters;
using Headspring.Training.WebUI.Views;
using StructureMap;

namespace Headspring.Training.WebUI
{
	public partial class TodoQueue : UserControlBase, IWorkQueueView
	{
		private WorkOrder[] _assignedWorkOrders;
		private WorkOrder[] _workOrdersInProgress;

		protected void Page_Load(object sender, EventArgs e)
		{
			TodoPresenter presenter = ObjectFactory.FillDependencies<TodoPresenter>();
			presenter.Execute(this);
		}

		public WorkOrder[] AssignedWorkOrders
		{
			get { return _assignedWorkOrders; }
			set { _assignedWorkOrders = value; }
		}

		public WorkOrder[] WorkOrdersInProgress
		{
			get { return _workOrdersInProgress; }
			set { _workOrdersInProgress = value; }
		}
	}
}